package train.time0621;

public class No1 {
	
	public static void main(String[] args) {
		int count = 20;
		int top = 1;
		for (int a = 1; a < count; a+=2) {
			for (int b = 1; b <= a; b+=2) {
				for (int c = 1; c <= b; c+=2) {
					for (int d = 1; d <= c; d+=2) {
						for (int e = 1; e <= d; e+=2) {
							for (int f = 1; f <= e; f+=2) {
								for (int g = 1; g <= f; g+=2) {
									for (int h = 1; h <= g; h+=2) {
										if(a+b+c+d+e+f+g+h==20){
											System.out.println(
													"No"+top+":"+a
													+"+"+b
													+"+"+c
													+"+"+d
													+"+"+e
													+"+"+f
													+"+"+g
													+"+"+h
													+"="+count
													);
											top++;
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}

}
